#ifndef IMAGEITEM_H
#define IMAGEITEM_H

#include <QWidget>

class QUrl;
class ImageItemPrivate;
class ImageItem : public QWidget
{
    Q_OBJECT
public:
    explicit ImageItem(QWidget *parent = 0);
    ~ImageItem();

    void setUrl(const QUrl& url);
    QUrl url() const;

    void setDescription(const QString& desc);
    QString description() const;

    QString localPath() const;

private slots:
    void onPercentCompleted(float percent);

private:
    ImageItemPrivate* d_ptr;
    Q_DISABLE_COPY(ImageItem)
};

#endif // IMAGEITEM_H
